/**
 * 
 */
package com.globallogic.training.university.study;

import com.globallogic.training.university.Strings;

/**
 * Class <code>Lecture</code> represents a lecture of a course
 * 
 * @author vasiliy.kulgaviy
 * 
 */
public class Lecture extends Lesson implements Lessonable {

	/**
	 * Constructs a lecture with defined Topic
	 * 
	 * @param topic
	 *            the topic of the new lecture
	 */
	public Lecture(String topic) {
		super(topic);
	}

	/**
	 * Returns the topic of the lesson
	 * 
	 * @return the topic of the lesson
	 */
	public String getTopic() {
		return topic;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return String.format(Strings.TO_STRING_LECTURE, topic);
	}
}
